﻿using ChurchDiary.BLL;
using ChurchDiary.TableEntity;
using Rotativa.Core.Options;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ChurchWebsite.Areas.Reports.Controllers
{
    public class ChurchMemberReportsController : Controller
    {
        //
        // GET: /Reports/ChurchMemberReports/

        public ActionResult PrintChurchMemberApplicantDetails()
        {
            return View();
        }

        public ActionResult ViewChurchMemberApplicantDetails()
        {
            return View();
        }

       /* public ActionResult ChurchMemberApplicantDetails(string ApplicationId)
        {
            Guid AppId = new Guid(ApplicationId);
            return new Rotativa.ActionAsPdf("PrintChurchMemberApplicantDetails", new BLL_Member().GetChurchMemberApplication(AppId)) { FileName = "TestActionAsPdf.pdf" };
        }*/

        public ActionResult ChurchMemberApplicantDetails(Guid ApplicationId)

        {
            EntityChurchMemberApplications obj = new EntityChurchMemberApplications();

            obj = new BLL_Member().GetChurchMemberApplication(ApplicationId);

            return new Rotativa.ViewAsPdf(obj);

           

        }

    }
}
